﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using PowerHub.MES.Entities.Crew;
using PowerHub.MES.Entities.Shopfloor;

namespace PowerHub.MES.Entities.BasicData;

/// <summary>
/// 用户
/// </summary>
[Table("BasicData_Userinfo")]
public partial class BasicData_Userinfo : BaseEntity
{
    /// <summary>
    /// 工号
    /// </summary>
    public string? JobNumber { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    public string? UserName { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    public string? Password { get; set; }

    /// <summary>
    /// 角色id
    /// </summary>
    public string? RoleinfoId { get; set; }

    /// <summary>
    /// 手机号
    /// </summary>
    public string? PhoneNo { get; set; }

    /// <summary>
    /// 性别
    /// </summary>
    public int? Sex { get; set; }

    /// <summary>
    /// 部门id
    /// </summary>
    public string? DepartmentId { get; set; }


    //public virtual ICollection<Crew_TeamBillDetial> CrewTeamBillDetials { get; set; } = new List<Crew_TeamBillDetial>();

    public virtual BasicData_Department? Department { get; set; }

    public virtual BasicData_Roleinfo? Roleinfo { get; set; }

    //public virtual ICollection<Shopfloor_ProductionLine> ShopfloorProductionLines { get; set; } = new List<Shopfloor_ProductionLine>();

    //public virtual ICollection<Shopfloor_Workshopinfo> ShopfloorWorkshopinfos { get; set; } = new List<Shopfloor_Workshopinfo>();
}
